@extends('admin.mainlayout')

@section('title')
<div class="title"><span>品牌订单交易统计(图表)></span></div>
@endsection
@section('content')
    <div id="container" style="min-width:400px;height:400px"></div>
<script src="/code/highcharts.js"></script>
<script src="/code/modules/exporting.js"></script>
    <script>
        /**
         * Highcharts 在 4.2.0 开始已经不依赖 jQuery 了，直接用其构造函数既可创建图表
         **/
        var chart = new Highcharts.Chart('container', {
            title: {
                text: '今年的订单交易量',
                x: -20
            },
            subtitle: {
                text: '',
                x: -20
            },
            xAxis: {
                categories: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
            },
            yAxis: {
                categories: ['50', '100', '150', '200', '250', '300', '350', '400', '450', '500', '550', '600'],
                title: {
                    text: '订单量 (°比)',

                },
                plotLines: [{
                    value: 0,
                    width: 1,
                    color: '#808080'
                }]
            },
            tooltip: {
                valueSuffix: '°比'
            },
            legend: {
                layout: 'vertical',
                align: 'right',
                verticalAlign: 'middle',
                borderWidth: 0
            },
            series: [{
                name:"交易",
                data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]
            }]
        });
    </script>
@endsection
